import _ from 'lodash';
const echartsDom:any[] = [];

export function echartsResize(eDom:any) {

    echartsDom.push(eDom);
    console.log(echartsDom);
    const resize = () => {
        console.log('窗口调整大小');
        
        echartsDom.forEach(item => item.resize())
    }
    // window.onresize = resize;
    window.onresize = _.debounce(resize,10)

}